package com.thread;

import com.mysql.cj.jdbc.JdbcConnection;

import java.util.Random;

public class Start {
    static ThreadLocal<Student> threadLocalst=new ThreadLocal<Student>();
    //static Student st=new Student();
    public  static  void  main(String [] args) {
        //System.out.print("asdf");
        Student st=new Student();
        SetThread r1=new SetThread(st);
        GetThread r2=new GetThread(st);
        Thread thread1=new Thread(r1,"添加");
        Thread thread2=new Thread(r2,"取出");
        thread1.start();
        thread2.start();

/*        MyConnection myConnection=MyConnection.getMyconnection();

        MyConnection2 myConnection2=MyConnection2.getConnection();*/

    }
}
